package com.uwo.commons.samples.controller;

import com.uwo.commons.dubbo.configuration.aop.annotation.DubboReference;
import com.uwo.commons.samples.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by yanhao on 2018/2/7.
 */
@RestController
public class TestController {

    @DubboReference
    private TestService testService;

    @RequestMapping("/test")
    @ResponseBody
    public String test(){
        return testService.test();
    }

}
